package com.wandian.texas;

/**
 * @author long
 * @Create 2012-10-27 下午4:00:59
 * @QQ 108232706
 * @version 1.0
 * @description Game
 */
public class Game {

//	public GameRoomEntity GameRoom = new GameRoomEntity();
//	public List<SessionObject> PlayingPlayers = new ArrayList<SessionObject>();
//	public List<SessionObject> WaitingPlayers = new ArrayList<SessionObject>();
//	public List<SessionObject> WatchPlayers = new ArrayList<SessionObject>();
//	public boolean isPlaying;
//	public int gameStatus;

//	@Override
//	public String toString() {
////		return String.format("%s,玩家信息:%s,游戏详细信息:%s", isPlaying ? "游戏中" : "未开始", getPlayingPlayersInfo(), GameRoom.toString());
//		return String.format("玩家信息,游戏详细信息:%s", isPlaying ? "游戏中" : "未开始", GameRoom.toString());
//	}

//	public String getPlayingPlayersInfo() {
//		String playingPlayersInfo = String.format("当前游戏,RoomId:%s,GameId:%s参与人:", GameRoom.RoomId, GameRoom.GameId);
//		Iterator<SessionObject> it = PlayingPlayers.iterator();
//		UserInfoEntity user;
//		while (it.hasNext()) {
//			user = it.next().getUser();
//			playingPlayersInfo += user.nickName + " 坐位:" + user.seatId;
//		}
//		return playingPlayersInfo;
//	}

//	public String getWaitingPlayersInfo() {
//		String playingPlayersInfo = String.format("当前游戏,RoomId:%s,GameId:%s参与人:", GameRoom.RoomId, GameRoom.GameId);
//		Iterator<SessionObject> it = WaitingPlayers.iterator();
//		UserInfoEntity user;
//		while (it.hasNext()) {
//			user = it.next().getUser();
//			playingPlayersInfo += user.nickName + " ";
//		}
//		return playingPlayersInfo;
//	}
//
//	public String getWatchPlayersInfo() {
//		String playingPlayersInfo = String.format("当前游戏,RoomId:%s,GameId:%s参与人:", GameRoom.RoomId, GameRoom.GameId);
//		Iterator<SessionObject> it = WatchPlayers.iterator();
//		UserInfoEntity user;
//		while (it.hasNext()) {
//			user = it.next().getUser();
//			playingPlayersInfo += user.nickName + " 坐位:" + user.seatId;
//		}
//		return playingPlayersInfo;
//	}
}
